package cn.gjculture.shopping.api.service.impl;

import cn.gjculture.shopping.api.dao.InsuranceDao;
import cn.gjculture.shopping.api.entity.Insurance;
import cn.gjculture.shopping.api.service.InsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InsuranceServiceImpl implements InsuranceService {

    @Autowired
    InsuranceDao insuranceDao;

    @Override
    public int insert(Insurance insurance) {
        return insuranceDao.insert(insurance);
    }

    @Override
    public List<Insurance> query() {
        return insuranceDao.query();
    }
}
